package tk.mybatis.springboot.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class OrderResultMsg implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2356386379827671885L;
	
	private String id;
	
	private String licenseNo;
	
	private String status;
	
	private String returnServiceNo;
	
	private String customerName;
	
	private Date orderTime;
	
	private String unitName;
	
	private BigDecimal money;
	
	private BigDecimal totalCost;
	
	private BigDecimal rebates;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public BigDecimal getTotalCost() {
		return totalCost;
	}

	public void setTotalCost(BigDecimal totalCost) {
		this.totalCost = totalCost;
	}

	public BigDecimal getRebates() {
		return rebates;
	}

	public void setRebates(BigDecimal rebates) {
		this.rebates = rebates;
	}

	public String getLicenseNo() {
		return licenseNo;
	}

	public void setLicenseNo(String licenseNo) {
		this.licenseNo = licenseNo;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getReturnServiceNo() {
		return returnServiceNo;
	}

	public void setReturnServiceNo(String returnServiceNo) {
		this.returnServiceNo = returnServiceNo;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public Date getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public BigDecimal getMoney() {
		return totalCost == null ? BigDecimal.ZERO : totalCost.subtract(rebates == null ? BigDecimal.ZERO : rebates);
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}
}
